package com.hpeu_01.day0106.homework;

public class HomeWork02 {
    Person person = new Person("test");
    static {
        System.out.println("test static");
    }
    public HomeWork02(){
        System.out.println("sss");
    }
    public HomeWork02(int x){
        System.out.println("test constructor");
    }

    public static void main(String[] args) {
        new Base(4);
    }
}
class Person{
    static {
        System.out.println("person static");
    }
    public Person(String str){
        System.out.println("person "+str);
    }
}
class Base extends HomeWork02{
    Person person = new Person("Base");
    static{
        System.out.println("base static");
    }
    public Base(){
        System.out.println("ddd");
    }
    public Base(int x){
        super();
        System.out.println("base constructor");
    }
}